import axios from "./axios";

export function getHotAlbum(limit, type) {
  return axios({
    url: "/top/album",
    params: {
      limit,
      type,
    },
  });
}

export function getNewAlbum(limit, offset, area) {
  return axios({
    url: "/album/new",
    params: {
      limit,
      offset,
      area,
    },
  });
}

export function getAlbumNewest() {
  return axios({
    url: "/album/newest",
  });
}

export function getAlbum(id) {
  return axios({
    url: "/album",
    params: {
      id,
    },
  });
}

export function getAlbumComment(id, limit, offset) {
  return axios({
    url: "/comment/album",
    params: {
      id,
      limit,
      offset,
    },
  });
}

export function getArtistAlbum(id, limit, offset) {
  return axios({
    url: "/artist/album",
    params: {
      id,
      limit,
      offset,
    },
  });
}
